﻿/************************************************************************************  
' Copyright (C) 2008 Anthony Bouch (http://www.58bits.com) under the terms of the
' Microsoft Public License (Ms-PL http://www.codeplex.com/precode/license)
' Update Processor courtesy of Alexander Groß at http://www.therightstuff.de/ 
'***********************************************************************************/
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Reflection;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;

namespace PreCodePlugin
{
    public partial class AboutWindow : KryptonForm
    {
        public AboutWindow()
        {
            InitializeComponent();
            Version version = Assembly.GetAssembly(GetType()).GetName().Version;
            textBox1.Text  = textBox1.Text.Replace("Version:", String.Format("Version: {0}.{1}.{2}", version.Major, version.Minor, version.Build));
        }

        private void lnkSyntaxHighlighter_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                Process.Start("http://www.58bits.com/");
            }
            catch { }
        }

        private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                Process.Start("http://precode.codeplex.com/");
            }
            catch { }
            
        }

        private void AboutWindow_Load(object sender, EventArgs e)
        {

        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                Process.Start("http://alexgorbatchev.com/wiki/SyntaxHighlighter");
            }
            catch { }
        }

        private void kryptonButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
